package com.jt.vo;


import lombok.Data;

import java.io.Serializable;

@Data
public class ImageVO implements Serializable {
    private static final long serialVersionUID = -613435230977851471L;
    private Integer error;
    private String url;
    private Integer width;
    private Integer height;

    public ImageVO(){}

    public ImageVO(Integer error, String url, Integer width, Integer height) {

    }
    public static ImageVO fail(){
        return new ImageVO(1, null, null, null);
    }

    public static ImageVO success(String url) {
        return new ImageVO(1, url, null, null);
    }

    public static ImageVO success(String url, Integer width, Integer height) {
        return new ImageVO(0, url, null, null);
    }



}
